<h3>Search for a bed for a person</h3>

<% form_tag person_path, :id => 'new_person' do %>
  <table>
    <tr>
      <td><b>Age:</b></td>
      <td><%= text_field :person, :age, :size => 5 %></td>
    </tr>

    <tr>
      <td><b>Sex:</b></td> 
      <td>
        <%= radio_button :person, :sex, "male" %> Male &nbsp;
        <%= radio_button :person, :sex, "female" %> Female
      </td>
    </tr>
    
    <tr>
      <td><b>Children:</b></td> 
      <td><%= text_field :person, :children, :size => 5 %></td>
    </tr>
    
    <tr><td>&nbsp;</td></tr>
    
    <tr>
      <td>Addiction</td>
      <td><%= check_box :person, :addiction %></td>
    </tr>

    <tr>
      <td>Veteran</td>
      <td><%= check_box :person, :veteran %></td>
    </tr>

    <tr>
      <td>HIV/AIDS</td>
      <td><%= check_box :person, :hiv_aids %></td>
    </tr>
  </table><br />

  <p>
    <%= submit_tag "Find" %>
  </p>
<% end -%>

<br />
<%= link_to 'Agencies', home_url %>
